package com.wocharging.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
* 小程序端客户表
* </p>
* @author yuzhou
* @since 2024-06-179 15:00:10
*/
@Data
@Accessors(chain = true)
@TableName("wo_wx_user")
@ApiModel(value = "WoWxUser对象", description = "小程序端客户表")
public class WoWxUser implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("1.普通用户2.平台用户3.企业用户")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("根据type区分不同的客户ID 1.会员ID以V开头 2.平台客户yyyyMMddHHmmss 3.企业员工工号")
    @TableField("identity_id")
    private String identityId;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("登录密码")
    @TableField("pass_word")
    private String passWord;

    @ApiModelProperty("微信号")
    @TableField("wechat_code")
    private String wechatCode;

    @ApiModelProperty("微信端返回的openId")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty("真实姓名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty("身份证")
    @TableField("identity_code")
    private String identityCode;

    @ApiModelProperty("身份证到期日期")
    @TableField("identity_expiry")
    private String identityExpiry;

    @ApiModelProperty("身份证正面照")
    @TableField("identity_img1")
    private String identityImg1;

    @ApiModelProperty("身份证背面照")
    @TableField("identity_img2")
    private String identityImg2;

    @ApiModelProperty("账户状态 1有效 2无效")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("余额")
    @TableField("balance")
    private BigDecimal balance;

    @ApiModelProperty("支付密码")
    @TableField("pay_password")
    private String payPassword;

    @ApiModelProperty("紧急联系手机号")
    @TableField("emergency_mobile")
    private String emergencyMobile;

    @ApiModelProperty("运营商id")
    @TableField("operator_id")
    private Long operatorId;

    @ApiModelProperty("站点id")
    @TableField("site_id")
    private Long siteId;

    @ApiModelProperty("服务区id")
    @TableField("service_area_id")
    private Long serviceAreaId;

    @ApiModelProperty("平台余额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("微信余额")
    @TableField("amount_wx")
    private BigDecimal amountWx;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

}
